<form class="layui-form" action="" style="margin:20px;padding:20px;">
    <div class="layui-form-item">
      <div class="layui-form-item">
          <div class="layui-inline">
            <label class="layui-form-label">项目名称</label>
            <div class="layui-input-inline">
              <select name="app_id" lay-verify="required">
                    <option value="">请选择项目</option>
                    <{volist name='app' id='v'}>
                    <option value="<{$key}>"><{$v}></option>
                    <{/volist}>
              </select>
            </div>
          </div>
          <div class="layui-inline">
            <label class="layui-form-label">执行人</label>
            <div class="layui-input-inline">
              <select name="to_user_id" lay-verify="required">
                    <option value="">请选择执行人</option>
                    <{volist name='user' id='v'}>
                    <option value="<{$key}>"><{$v}></option>
                    <{/volist}>
              </select>
            </div>
          </div>
        <div class="layui-inline">
          <label class="layui-form-label">状态</label>
          <div class="layui-input-inline">
            <select name="status" lay-verify="required">
                <{volist name='status' id='v'}>
                <option value="<{$key}>"><{$v}></option>
                <{/volist}>
            </select>
          </div>
        </div>
      <div class="layui-inline">
        <input type="checkbox" name="tx_sms" title="短息提醒">
        <input type="checkbox" name="tx_email" title="邮件提醒">
      </div>
      </div>
  </div>
      <div class="layui-form-item">
        <div class="layui-form-item">
            <div class="layui-inline">
              <label class="layui-form-label">开始时间</label>
              <div class="layui-input-inline">
                <input type="text" id="min_time" name="start_time" placeholder="开始时间" class="layui-input">
              </div>
            </div>
          <div class="layui-inline">
            <label class="layui-form-label">完成时间</label>
            <div class="layui-input-inline">
                <input type="text" id="max_time" name="end_time" placeholder="完成时间" class="layui-input">
            </div>
          </div>
        </div>
    </div>
  <div class="layui-form-item">
    <label class="layui-form-label">标题</label>
    <div class="layui-input-block">
      <input type="text" name="title" required  lay-verify="required" placeholder="请输入标题" autocomplete="off" class="layui-input">
    </div>
  </div>
<div class="layui-form-item">
  <label class="layui-form-label">内容</label>
  <div class="layui-input-block">
    <textarea name="content" lay-verify="content" id="layui_textarea_index" placeholder="请输入内容" class="layui-textarea"></textarea>
  </div>
</div>
  <div class="layui-form-item">
    <div class="layui-input-block">
      <button class="layui-btn" lay-submit lay-filter="form">添加任务</button>
    </div>
  </div>
</form>
<script>
$().ready(function(){
    layui.form.render('select');
    layui.form.render('checkbox');
});
</script>
